package com.zzyk.main.service;

import com.zzyk.main.configuration.exception.DeviceException;
import com.zzyk.main.configuration.exception.UserException;
import com.zzyk.main.model.pojo.CommonCount;
import com.zzyk.main.model.pojo.Company;
import com.zzyk.main.model.vo.OrganizationInfo;

import java.util.List;

public interface CompanyService {


    int deleteByPrimaryKey(Integer id) throws UserException, DeviceException;

    int insert(Company record);

    int insertSelective(Company record);

    Company selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Company record);

    int updateByPrimaryKey(Company record);

    /**
     * 查询全部企业信息
     *
     * @param param
     * @param areas
     * @return
     */
    List<Company> selectEnterpriseByParam(String param, String[] areas);

    /**
     * 统计企业数量
     *
     * @param areaArr
     * @return
     */
    CommonCount getTotal(String[] areaArr);

    List<OrganizationInfo> getEnterpriseByIds(String area);
}

